import request from '@/utils/request'

// 节点列表
export function nodeLists(params?: Record<string, any>) {
    return request.get({ url: '/node/list', params })
}

// 节点详情
export function nodeDetail(params: Record<string, any>) {
    return request.get({ url: '/node/detail', params })
}

// 节点新增
export function nodeAdd(params: Record<string, any>) {
    return request.post({ url: '/node/add', params })
}

// 节点编辑
export function nodeEdit(params: Record<string, any>) {
    return request.post({ url: '/node/edit', params })
}

// 节点删除
export function nodeDelete(params: Record<string, any>) {
    return request.post({ url: '/node/del', params })
}
